/*
 * @Author: HeAo
 * @Date: 2021-09-27 11:04:23
 * @LastEditTime: 2021-09-27 11:16:08
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2103code\3-1-ES6\day03\5-Set集合.js
 * 别乱动！
 */

let arr = [1, 2, 3, 4, 4, 5, 3, 2, 1, 7]
let set = new Set(arr)
set.add(100)
// console.log(Array.from(set));
console.log(set.size);
console.log(set.delete(1));
console.log(set.has(1));
// set.clear()
console.log(set);

let keys = set.keys()
let values = set.values()
let entries = set.entries()

// console.log(entries.next());

set.forEach((value) => {
  console.log(value);
})


